package com.atguigu.serviceedu.client;

import com.atguigu.commonutils.R;
import com.atguigu.commonutils.UcenterMemberVo;
import com.atguigu.serviceedu.client.impl.UcenterClientImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@Component
@FeignClient(name="service-ucenter",fallback = UcenterClientImpl.class)
public interface UcenterClient {
    /**
     * 通过id获取用户信息（评论模块）
     * @param memberId
     * @return
     */
    @GetMapping("/educenter/member/getMemberInfoById/{memberId}")
    public UcenterMemberVo getMemberInfoById(@PathVariable("memberId") String memberId);
}
